// auth 权限管理
import Cookies from 'js-cookie'
// Cookies.set(标志, 值)
// Cookies.get(标记)
// Cookies.remove(标记)
const TokenKey = 'token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

//
export function setDateNow() {
  Cookies.set('time', Date.now())
}
export function getDateNow() {
  return Cookies.get('time')
}
